package thinker.miracle.exception;

/**
 * @author bo.chen
 *
 */
public class JmsListenerException extends RuntimeException {

	private static final long serialVersionUID = 6354953665953632000L;

	private String errorCode;
	
	public JmsListenerException(String message){
		super(message);
	}
	
	public JmsListenerException(String errorCode, String message){
		super(message);
		this.setErrorCode(errorCode);
	}
	
	public JmsListenerException(String errorCode, String message, Throwable cause){
		super(message,cause);
		this.setErrorCode(errorCode);
	}
	
	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
}
